import changeData from 'utils/changeData.js'
export const detalisList = [
	{
		label: 'tittle',
		field: 'companyName'
	},
	{
		label: '单位地址',
		field: 'companyProvince',
		field1:'companyPlace'
	},
	{
		label: '单位注册地址',
		field: 'registerProvince',
		field1:'registerPlace'
	},
	{
		label: '统一社会信用代码',
		field: 'socialCreditCode'
	},
];
export const detalisList1 = [
	{
		label: '经营名称',
		field: 'businessName'
	},
	{
		label: '英文名称',
		field: 'enName',
	},
	{
		label: '重点单位',
		field: 'keyUnit',
		slot: true
	},
	{
		label: '消防重点单位',
		field: 'firefightingUnits',
		slot: true
	},
	{
		label: '防恐重点单位',
		field: 'antiUnit',
		slot: true
	},
	{
		label: '上级主管/单位',
		field: 'supervisoryUnit'
	},
	{
		label: '单位类型',
		field: 'unitType',
		slot: true,
		code:'urban_type'
	},
	{
		label: '经济类型',
		field: 'economicType',
		slot: true,
		code:'economic_type'
	},
	{
		label: '行业类别',
		field: 'industryCategory',
		slot: true,
		code:'industry_category'
	},
	{
		label: '开业日期',
		field: 'openingDate',
	},
	{
		label: '停业日期',
		field: 'closingDate',
	},
	{
		label: '经营面积',
		field: 'businessArea'
	},
	{
		label: '经营方式',
		field: 'businessModel',
		slot: true,
		code:'business_model'
	},
	{
		label: '营业执照有效期',
		field: 'businessLicenseValid',
	},
	{
		label: '注册资金',
		field: 'registeredCapital'
	},
	{
		label: '联系电话',
		field: 'phone',
		encryption:true
	},
	{
		label: '主营范围',
		field: 'businessScope',
	},
	{
		label: '兼营范围',
		field: 'businessConcurrentScope'
	}
];
export const detalisList2 = [
	{
		label: '姓名',
		field: 'legalName',
		encryption:true
	},
	{
		label: '联系电话',
		field: 'legalPhone',
		encryption:true
	},
	{
		label: '身份证号',
		field: 'legalCard',
		encryption:true
	},
];
export const detalisList3 = [
	{
		label: '姓名',
		field: 'chargePersonName',
	},
	{
		label: '联系电话',
		field: 'chargePersonPhone',
		encryption:true
	},
	{
		label: '身份证号',
		field: 'chargePersonCard',
		encryption:true
	},
];
export const formList = [
	{
		label: '核查人姓名',
		prop: 'verifierName',
		type: 'text',
		placeholder: '请输入核查人姓名',
		rules: [
			{
				required: true,
				message: '请输入核查人姓名',
				trigger: ['change', 'blur']
			}
		]
	},
	{
		label: '工作单位',
		prop: 'verifierUnit',
		type: 'text',
		placeholder: '请输入工作单位',
		rules: [
			{
				required: true,
				message: '请输入工作单位',
				trigger: ['change', 'blur']
			}
		]
	},
	{
		label: '联系方式',
		prop: 'verifierPhone',
		type: 'text',
		placeholder: '请输入联系方式',
		rules: [
			{
				required: true,
				message: '请输入联系方式',
				pattern:changeData.phonePattern,
				trigger: ['change', 'blur']
			}
		]
	},
	{
		label: '核查时间',
		prop: 'verifierDate',
		type: 'datetime',
		placeholder: '请选择时间',
		mode: 'datetime',
		rules: [
			{
				required: true,
				message: '请选择时间',
				trigger: ['change', 'blur']
			}
		],
		format: 'YYYY-MM-DD HH:mm'
	},
	{
		label: '核查状态',
		prop: 'verifierStatus',
		type: 'popup',
		placeholder: '请选择核查状态',
		rules: [
			{
				required: true,
				message: '请选择核查状态',
				trigger: ['change', 'blur'],
				transform(value) {
					return String(value);
				}
			}
		],
		columns: [
			{ name: '已核查', value: 2 },
			{ name: '上报', value: 3 }
		]
	},
	{
		label: '情况描述（选填）',
		prop: 'situationDescription',
		type: 'textarea',
		placeholder: '请输入内容'
	}
];